package cate.common.table.res.holy_pet.practice;

import cate.common.table.ESheet;
import easy.java.dev.note.NoteField;

/**
 * 灵宠-修炼等级 Sheet
 *
 * @author ShenSL
 * @since 2023/8/24 14:52
 */
public class HolyPetPracticeSheet extends ESheet<HolyPetPracticeRow> {
    @Override
    public String getSheetName() {
        return "修炼等级";
    }

    @NoteField("最大等级")
    public int maxLevel;

    @Override
    public void decode() {
        super.decode();
        maxLevel = getList().stream().mapToInt(row -> row.id)
                .max().orElse(0);
    }
}
